SipClientSubscribe Method (String, String, String, String, Int32) |
Subscribes in order to receiving notifications about a particular event specified with the event name.
Namespace:
Independentsoft.Sip
Assembly:
Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntaxpublic RequestResponse Subscribe(
string from,
string to,
string contact,
string eventName,
int expires
)
Public Function Subscribe (
from As String,
to As String,
contact As String,
eventName As String,
expires As Integer
) As RequestResponse
Parameters
- from
- Type: SystemString
A string contains address and display name of the subscriber. - to
- Type: SystemString
A string contains address of the recipient. - contact
- Type: SystemString
A string contains user's contact address. Usually the address contains user's IP address and port. - eventName
- Type: SystemString
A string contains name of the event. - expires
- Type: SystemInt32
A number of seconds indicates duration of the subscription.
Return Value
Type:
RequestResponseA
RequestResponse containing sent
Request and received appropriate
Response.
See Also